import { RuleType, Status } from ".";

// 配置信息
export class GlobalConfig {
    intervalMs: number;
    hideNotificationDetail: boolean;
    notificationTemplate: string;
    status: Status;
}

// 规则信息
export class RuleInfo {
    ruleName: string; // 规则名称
    sharesName: string; // stock名称
    sharesCode: string; // stock code
    ruleType: string; // 规则类型
    ruleValue: number; // 规则值
    repeatNotification: boolean; // 是否重复通知
    id: string; // 生成ID
}

// searchResult
export class StockInfo{
    stockName: string; // stock名称
    stockCode: string; // stock 代码
}

// 价格Result
export class PriceRes{
    currentPrice: number;
    startPrice: number;
}